﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.master" AutoEventWireup="true"
    CodeFile="OrderRefund.aspx.cs" Inherits="Platform_OrderRefund" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Scripts/GiveTip.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table style="border-collapse: separate" cellpadding="4" cellspacing="4">
        <tr>
            <td>
                订单号：
            </td>
            <td>
                <NC:FTextBox ID="OrderNo" runat="server" Width="200px" EnableCheck="false" />
            </td>
            <td>
                手机号：
            </td>
            <td>
                <NC:FTextBox ID="Mobile" runat="server" Width="120px" EnableCheck="false" />
            </td>
            <td>
                状态：
            </td>
            <td>
                <NC:FDropdownList ID="ddlState" runat="server">
                </NC:FDropdownList>
            </td>
            <td>
                <asp:Button ID="btnSearch" runat="server" class="btn btn3" OnClick="btnSearch_Click"
                    Text="查 找" />
            </td>
        </tr>
    </table>
    <NC:FGridView ID="FGridView1" runat="server" AutoCreateNumber="true" ShowFooter="true"
        Width="100%" OnRowDataBound="FGridView1_RowDataBound">
        <Columns>
            <asp:BoundField DataField="OrderNo" HeaderText="订单号" />
            <asp:BoundField DataField="Mobile" HeaderText="手机号" ItemStyle-Width="100px" />
            <asp:BoundField DataField="TrueName" HeaderText="称呼" ItemStyle-Width="100px" />
            <asp:BoundField DataField="CarNumber" HeaderText="车牌号" ItemStyle-Width="100px" />
            <asp:BoundField DataField="Price" HeaderText="服务金额" ItemStyle-Width="80px" />
            <asp:BoundField DataField="Pay" HeaderText="支付金额" ItemStyle-Width="80px" />
            <asp:BoundField DataField="PayNo" HeaderText="支付单号" ItemStyle-Width="80px" />
            <NC:FBoundColumn DataField="PayDate" DataType="DateTime" HeaderText="支付时间" ItemStyle-Width="150px" />
            <asp:TemplateField HeaderText="状态" ItemStyle-Width="50px">
                <ItemTemplate>
                    <%# NS.BLL.Systems.DictionaryService.GetDicName("订单状态", Convert.ToString(Eval("State")))%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemStyle HorizontalAlign="Center" Width="60px" />
                <ItemTemplate>
                    <asp:Button runat="server" class="Gridbtn" Text="退款" Visible="false" ID="btnRefund"
                        OnClientClick="GiveTip(event,'您确定退款吗？');" OnClick="btnRefund_Click" CommandArgument='<%# Eval("OrderID") %>' />
                    <asp:Label ID="labRes" runat="server" Visible="false">退款成功</asp:Label>
                    <asp:HiddenField ID="HiddOrderNo" runat="server" Value='<%# Eval("OrderNo") %>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </NC:FGridView>
</asp:Content>
